package com.zxy.service;


import com.zxy.dao.ProductDao;
import com.zxy.dao.VendorDao;
import com.zxy.model.Product;
import com.zxy.model.ProductQuery;
import com.zxy.model.Vendor;
import com.zxy.model.VendorQuery;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class VendorService {

    @Autowired
    private VendorDao vendorDao;
    public List<Vendor> select(VendorQuery query) {
        return vendorDao.select(query);
    }

    public int insert(Vendor vendor) {
        return vendorDao.insert(vendor);
    }

    public int update(Vendor vendor) {
        return vendorDao.update(vendor);
    }


}
